package com.jumi.microservice.warehousein.mapper;

import com.jumi.microservice.warehousein.domain.JmWarehouseInDetail;
import com.jumi.microservice.warehousein.dto.JmWarehouseInDetailRequest;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author ssk
 * @create 2020/8/12 14:04
 **/
public interface JmWarehouseInDetailMapper {

    int saveBatch(@Param("details") List<JmWarehouseInDetail> details);

    int updateBatch(@Param("details") List<JmWarehouseInDetail> details);

    int auditBatch(Map<String,Object> params);

    Long[] findMaterialIdsByInIds(@Param("inIds") Long[] inIds);

    List<Map<String,Object>> findDetailByInIds(@Param("inIds") Long[] inIds);

    int audit(List<Map<String,Object>> list);

    List<JmWarehouseInDetailRequest> findDetailByInId(Long inId);

}
